package com.example.carowners;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class PaySuccess extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pay_success);

        //支付成功返回首页
        Button bt_fanhuishouye = findViewById(R.id.bt_fanhuishouye);
        bt_fanhuishouye.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(
                        new Intent(PaySuccess.this,MainActivity.class)
                );
            }
        });
    }
}